package com.sap.sap_mangers.dto.share;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

import java.sql.Timestamp;

/**
 * @author 阿东
 * @date 2022/9/12 [0:23]
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UploadFile {
    private String username;
    private String name;
    private Timestamp createTime;
    private String topic;
    private MultipartFile file;
    private String fileUrl;
    private String url;
    private Integer type;
    private Integer fileType;
    private String tip;

    public UploadFile(String topic, MultipartFile file, String url, Integer type, Integer fileType) {
        this.topic = topic;
        this.file = file;
        this.url = url;
        this.type = type;
        this.fileType = fileType;
    }
}
